package com.zysc.processflow.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zysc.processflow.common.base.ResultBody;
import com.zysc.processflow.entity.Handleprocess;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zysc.processflow.pojo.HandleprocessPo;
import com.zysc.processflow.pojo.ProcessConfig;

import java.util.List;

/**
 * <p>
 * 处置流程管理 服务类
 * </p>
 *
 * @author 正元智慧城市_
 * @since 2022-11-18
 */
public interface IHandleprocessService extends IService<Handleprocess> {

    List<HandleprocessPo> GetHandleprocessListByPage(IPage<Handleprocess> page, String name, String processno, String id);

    Boolean handleNodes(ProcessConfig entity);

    Boolean handleCcs(HandleprocessPo entity);

    Boolean hasRunningRecord(String processID);

    Boolean deleteProcessNodes(String id);

    Boolean deleteProcessCcs(String id);

    Boolean handleLines(ProcessConfig entity);

    Boolean deleteProcessLines(String id);

    ResultBody getConfigByProcessId(String processId);
}
